<?php

class App_View_Helper_Box extends Zend_View_Helper_Abstract {
	
	public function box($contenido, $titulo="", $width="500px;", $tipo="info") {
	    $html = "<div class=\"panel panel-{$tipo}\" style=\"width:{$width}\">";
	    if(!empty($titulo)) {
	        $html.= "<div class=\"panel-heading\"><strong>{$titulo}</strong></div>";
	    }
	    $html.= "<div class=\"panel-body\">{$contenido}</div>";
	    $html.= "</div>";
		return $html;
	}
}
